package cn.com.fuhuitong.main.cate.mode

import cn.com.fuhuitong.http.BaseApiService
import cn.com.fuhuitong.main.cate.entity.CateChildResponse
import cn.com.fuhuitong.main.cate.entity.CateGroupResponse
import io.reactivex.Observable
import retrofit2.http.*

interface CategoryApi : BaseApiService {

    @GET("/api/goods/get_one_level_category")
    fun cateGroup(): Observable<CateGroupResponse>

    @GET("/api/goods/get_two_level_category")
    fun cateChild(
        @Query("id") id: String
    ): Observable<CateChildResponse>
}